package shejishiyan;
//课程类
public class Course {
 private String courseId;
 private String courseName;
 private double credit;
 
 public Course(String courseId, String courseName, double credit) {
     this.courseId = courseId;
     this.courseName = courseName;
     this.credit = credit;
 }
 
 // Getter方法
 public String getCourseId() { return courseId; }
 public String getCourseName() { return courseName; }
 public double getCredit() { return credit; }
 
 public String toString() {
     return "课程编号:" + courseId + ", 课程名称:" + courseName + ", 学分:" + credit;
 }
}